public class JAVA {
    private int id;
    private int age;
    private String name;

    public void open(){

        System.out.println("我正在说话");
    }


    public void learn(){
        System.out.println("我正在学习");
    }

    @Override
    public String toString() {
        return "JAVA{" +
                "id=" + id +
                ", age=" + age +
                ", name='" + name + '\'' +
                '}';
    }

    public int getId() {
        return id;
    }

    public void setId(int id) {
        this.id = id;
    }

    public int getAge() {
        return age;
    }

    public void setAge(int age) {
        this.age = age;
    }

    public String getName() {
        return name;
    }

    public void setName(String name) {
        this.name = name;
    }
}

